#include "toolBox.h"

toolBox& toolBox::getInstance()
{
    static toolBox instance;
    return instance;
}

toolBox::~toolBox()
{

}



DataUtils::saveSoftwareConfig::saveSoftwareConfig()
{
    //名称和组织
    settings = std::make_shared<QSettings>("MyCompany", "MyApp");
}

DataUtils::saveSoftwareConfig::~saveSoftwareConfig()
{

}

void DataUtils::saveSoftwareConfig::simpleSaveConfig(const QString& key, const QString& value)
{
    settings->setValue(key, value);
}

QVariant DataUtils::saveSoftwareConfig::findSaveConfig(const QString& key)
{
    return settings.get()->value(key);
}



